public class Text {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        //mySingleList.creatList();
        mySingleList.addFirst(12);
        mySingleList.addFirst(34);
        mySingleList.addFirst(45);
        mySingleList.addFirst(56);
        mySingleList.addFirst(78);

        mySingleList.addLast(34);
        mySingleList.addLast(90);
        mySingleList.addLast(78);
        mySingleList.addLast(54);
        mySingleList.addLast(67);
        mySingleList.show();
        mySingleList.remove(123);
        try {
            mySingleList.addIndex(31,19);
        }catch (IndexOutOFBounds indexOutOfBounds){
            indexOutOfBounds.printStackTrace();
        }
        System.out.println("abjuhdskf");
        System.out.println("-----------");
        mySingleList.show();
        System.out.println("-----------");
        int ret1 = mySingleList.size();
        System.out.println(ret1);
        System.out.println("--------");
        System.out.println(mySingleList.contains(12));
        System.out.println(mySingleList.contains(89));
        System.out.println(mySingleList.contains(45));
        System.out.println(mySingleList.contains(125));
    }
}
